package com.lzy.managersystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzy.managersystem.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lzy
 * @description 针对表【t_comment】的数据库操作Mapper
 * @createDate 2022-07-25 15:25:11
 * @Entity com.lzy.managersystem.pojo.Comment
 */
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> selectComment(@Param("articleId") Integer id);


    //查询所有

    List<Comment> selectAll();

    //插入

    int insertSelective(Comment comment);


    //根据id删除
    int delById(@Param("id") Integer id);

    //更新

    int updateSelective(Comment comment);

    int deleteByOriginId(@Param("originId") Integer originId);

    int delByPid(@Param("pid") Integer pid);

    Comment selectById(@Param("id") Integer id);
}




